export interface IApiResponse<T = any> {
  code: number
  msg: string
  data: T
}

export interface IPageParams {
  current: number
  pageSize: number
}

export interface IPageResponse<T = any> {
  content: T[]
  totalElements: number
  totalPages: number
  size: number
  number: number
}

export interface UserVO {
  id: number
  username: string
  userCode: string
  realName: string
  phone?: string
  email?: string
  status: boolean
  createTime: string
  updateTime: string
}

// 通用响应类型
export interface R<T = any> {
  code: number
  message: string
  data: T
}

// 分页结果
export interface PageResult<T> {
  content: T[]
  totalElements: number
  totalPages: number
  size: number
  number: number
}

// 用户信息
export interface UserVO {
  id: number
  userCode: string
  realName: string
  avatar?: string
  phone?: string
  email?: string
  gender?: number
  status: boolean
} 